projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
044026d
)
widget-factory: Make the print dialog more functional
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 13 Jun 2020 12:59:21 +0000
(08:59 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 13 Jun 2020 12:59:21 +0000
(08:59 -0400)
Allow opening the papersize dialog.
demos/widget-factory/widget-factory.c
patch
|
blob
|
history
diff --git
a/demos/widget-factory/widget-factory.c
b/demos/widget-factory/widget-factory.c
index bcfe73ceab628abcad88a5246dbdb83c795c5138..abc5fd12bae7534d7f8638e2ca4ba2d7853d18e2 100644
(file)
--- a/
demos/widget-factory/widget-factory.c
+++ b/
demos/widget-factory/widget-factory.c
@@
-408,6
+408,8
@@
activate_print (GSimpleAction *action,
g_signal_connect (op, "draw-page", G_CALLBACK (print_operation_page), window);
g_signal_connect (op, "done", G_CALLBACK (print_operation_done), NULL);
+ gtk_print_operation_set_embed_page_setup (op, TRUE);
+
res = gtk_print_operation_run (op, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, window, NULL);
if (res == GTK_PRINT_OPERATION_RESULT_IN_PROGRESS)